function jObject(obj, type) {
    this.o = obj;
    this.t = type;
};
jObject.prototype.getType = function () {
    if (this.t == null) {
        return typeof (obj);
    }
    else {
        return this.t;
    }
}

jObject.prototype.support = function (array) {
    return array.indexOf(this.getType()) >= 0;
}

jObject.prototype.contains = function (obj) {
    if (!this.support([])) return null;
    return this.o.indexOf(obj)>0
}
